<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <!-- Bootstrap -->
    <link href="vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- bootstrap-wysiwyg -->
    <!--   <link href="vendors/google-code-prettify/bin/prettify.min.css" rel="stylesheet">  -->

    <!-- Custom styling plus plugins -->
    <link href="build/css/custom.min.css" rel="stylesheet">

</head>
<div class="col-md-3 left_col">
    <div class="left_col scroll-view">
        <div class="navbar nav_title" style="border: 0;">
            <a href="javascript:void(0)" class="site_title"><i class="fa fa-paw"></i><span>FAB OA!</span></a>
        </div>

        <div class="clearfix"></div>

        <!-- menu profile quick info -->
        <div class="profile clearfix">
            <div class="profile_pic">
                <img src="images/img.jpg" alt="..." class="img-circle profile_img">
            </div>
            <div class="profile_info">
                <span>Welcome,</span>
                <h2>${user.name}</h2>
            </div>
        </div>
        <!-- /menu profile quick info -->
        <br/>

        <!-- sidebar menu -->
        <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
            <div class="menu_section">
                <h3>General</h3>
                <ul class="nav side-menu">
                    <li style="display:none" id="auth1"><a><i class="fa fa-home"></i>Rider Management(乘客管理) <span
                            class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li style="display:none" id="auth11"><a href="view/appUser/user_list.jsp"
                                                                    target="rightFrame">Rider Database(乘客列表)</a></li>
                        </ul>
                    </li>
                    <li style="display: none" id="auth2"><a><i class="fa fa-edit"></i>Driver Management(司机管理) <span
                            class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li style="display:none" id="auth21">
                                <a href="view/driver/driver.jsp" target="rightFrame">Driver Database(司机列表)</a>
                            </li>
                            <li style="display:none" id="auth22">
                                <a href="view/driver/the_online_time_config.jsp" target="rightFrame">Driver Online Time(司机上线时间设置)</a>
                            </li>
                            <li style="display:none" id="auth23">
                                <a href="view/driver/conf.jsp" target="rightFrame">Driver Cancellation Penalty(取消订单设置)</a>
                            </li>
                            <li style="display:none" id="auth24">
                                <a href="view/driver/mileage.jsp" target="rightFrame">Oil Service Payout(司机接单里程)</a>
                            </li>
                             <li style="display:none" id="auth25">
                                <a href="view/driver/maps.jsp" target="rightFrame">Drivers Location(司机位置)</a>
                            </li>
                        </ul>
                    </li>
                      <li style="display: none" id="auth3"><a><i class="fa fa-edit"></i>Vehicle Management(车辆管理)<span
                            class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li style="display:none" id="auth31">
                                <a href="view/car/car_list.jsp" target="rightFrame">Vehicle Type List(车辆信息列表)</a>
                            </li>
                        </ul>
                    </li>
                    <li style="display: none" id="auth4"><a><i class="fa fa-edit"></i>Order Management(订单管理) <span
                            class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li style="display:none" id="auth41"><a href="view/order/complete_list.jsp" target="rightFrame">Completed Order List(已完成订单列表)</a></li>
                             <li style="display:none" id="auth42"><a href="view/order/unfinished_list.jsp" target="rightFrame">Incomplete Order List(未完成订单列表)</a></li>
                           
                             <li style="display:none" id="auth43"><a href="view/sys/driver_feedback_list.jsp" target="rightFrame">Driver Assistance(司机端行程反馈列表)</a></li>
                             <li style="display:none" id="auth44"><a href="view/sys/user_feedback_list.jsp" target="rightFrame">Rider Assistance(用户行程反馈列表)</a></li>
                        </ul>
                    </li>
                    
                    <li style="display: none" id="auth5"><a><i class="fa fa-edit"></i>Finance Management(财务管理)<span
                            class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li style="display:none" id="auth51">
                                <a href="view/finance/monthorder.jsp" target="rightFrame">Monthly Statement(月结算订单)</a>
                            </li>
                            
                            <li style="display:none" id="auth52">
                                <a href="view/finance/weekorder.jsp" target="rightFrame">Weekly Statement(周已结算订单)</a>
                            </li>
                             <li style="display:none" id="auth58">
                                <a href="view/finance/noDeductions.jsp" target="rightFrame">Weekly Statement(周未结算订单)</a>
                            </li>
                           <!--  <li style="display:none" id="auth53">
                                <a href="view/finance/no_settlement_list.jsp" target="rightFrame">Unpaid Payout List(司机月收入报表)</a>
                            </li> -->
                             <li style="display:none" id="auth54">
                                <a href="view/finance/monthlyReportStatistics.jsp" target="rightFrame">Monthly report statistics(财务月报表统计)</a>
                            </li>
                            
                              <li style="display:none" id="auth55">
                                <a href="view/finance/driverMonthlyIncomeList.jsp" target="rightFrame">Driver Monthly Income Table(司机月收入报表)</a>
                            </li>
                            <li style="display:none" id="auth56">
                                <a href="view/finance/driverWeekIncomeList.jsp" target="rightFrame">Driver Weekly Income Table(司机周收入报表)</a>
                            </li>
                            <li style="display:none" id="auth57">
                                <a href="view/finance/weekly_settlement_setting.jsp" target="rightFrame">Payout Date(结算时间设置)</a>
                            </li>
                            
                        </ul>
                    </li>
                     <li style="display: none" id="auth6"><a><i class="fa fa-edit"></i>Fare Estimation Settings(报价系统)<span
                            class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                            <li style="display:none" id="auth61">
                                <a href="view/priceRules/price_the_rules.jsp" target="rightFrame">Fare Settings(价格设置)</a>
                            </li>
                             <li style="display:none" id="auth62">
                                <a href="view/priceRules/point_charges_list.jsp" target="rightFrame">Toll Point Settings(收费设置)</a>
                            </li>
                        </ul>
                    </li>
                      <li style="display: none" id="auth7"><a><i class="fa fa-edit"></i>Cost Management(营销管理)<span
                            class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                           <li style="display:none" id="auth71">
                                <a href="view/marketing/coupon_payment.jsp" target="rightFrame">Issued Coupons List(优惠劵发放列表)</a>
                            </li>
                            <li style="display:none" id="auth72">
                                <a href="view/marketing/corporate_information.jsp" target="rightFrame">Corporate Accounts List(企业机构信息列表)</a>
                            </li>
                        </ul>
                    </li>
                    <li style="display:none" id="auth8"><a><i class="fa fa-desktop"></i> System Settings(系统设置) <span
                            class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                           <!--  <li style="display:none" id="auth14"><a href="view/role/roleList.jsp" target="rightFrame">角色管理</a> </li> -->
                             <li style="display:none" id="auth81"><a href="view/sys/userInfo.jsp" target="rightFrame">Admin Settings(用户信息)</a> </li>
                            <li style="display:none" id="auth82"><a href="view/role/roleList.jsp" target="rightFrame">Permissions(职位权限)</a> </li>
                             <li style="display:none" id="auth83"><a href="view/sys/stauffUserList.jsp" target="rightFrame">Staff Information List（员工信息列表）</a> </li>
                            <!-- <li style="display:none" id="auth84"><a href="view/sys/formwork_list.jsp" target="rightFrame">消息推送模板管理</a></li>  -->
                          <!--   <li style="display:none" id="auth86"><a href="view/sys/userMessageRole_list.jsp" target="rightFrame">消息接收角色</a></li> -->
                           <!--  <li style="display:none" id="auth85"><a href="view/sys/start_page_list.jsp" target="rightFrame">Start Page(启动页管理)</a></li>
                            <li style="display:none" id="auth86"><a href="view/sys/guide_page_list.jsp" target="rightFrame">Loading Page(引导页管理)</a></li> -->
                             <li style="display:none" id="auth86"><a href="view/sys/version_update.jsp" target="rightFrame">Version update(版本更新)</a></li>
                            <li style="display:none" id="auth87"><a href="view/sys/message_list.jsp" target="rightFrame">All Notifications(消息推送列表)</a></li>
                            <li style="display:none" id="auth88"><a href="view/sys/add_card_message.jsp" target="rightFrame">Add bank card successful text message(添加银行卡成功短信内容)</a></li>
                          <!-- <li style="display:none" id="auth88"><a href="view/sys/serviceTheAlarm.jsp" target="rightFrame">Service warning(服务警告)</a></li>  -->
                          <!--   <li style="display:none" id="auth89"><a href="view/sys/theOnlineTime.jsp" target="rightFrame">司机上线时间设置</a></li> -->
                        </ul>
                    </li>
                     <li style="display:none" id="auth9"><a><i class="fa fa-desktop"></i> Suggestions (建议反馈)<span
                            class="fa fa-chevron-down"></span></a>
                        <ul class="nav child_menu">
                             <li style="display:none" id="auth91"><a href="view/sys/feedback_list.jsp" target="rightFrame">Suggestions(建议反馈)</a></li>
                        </ul>
                    </li>
                    
                </ul>
            </div>

        </div>
        <!-- /sidebar menu -->

        <!-- /menu footer buttons -->
        <div class="sidebar-footer hidden-small">
            <a data-toggle="tooltip" data-placement="top" title="Settings">
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
            </a>
            <a data-toggle="tooltip" data-placement="top" title="FullScreen">
                <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
            </a>
            <a data-toggle="tooltip" data-placement="top" title="Lock">
                <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
            </a>
            <a data-toggle="tooltip" data-placement="top" title="Logout" href="sysUser/loginout">
                <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
            </a>
        </div>
        <!-- /menu footer buttons -->
    </div>
</div>
<!-- jQuery -->
<script src="vendors/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="vendors/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="vendors/nprogress/nprogress.js"></script>
<!-- iCheck -->
<script src="vendors/iCheck/icheck.min.js"></script>
<!-- Custom Theme Scripts -->
<script src="build/js/custom.min.js"></script>

<script type="text/javascript">
  /*  for (var i = 1; i <= 200; i++) {
        $("#auth" + i).css("display", "block");
    }  */ 
      $(function(){	
	               if('${r}'==null){            	   
	               		for (var i = 1;  i<=100; i++) {
	            	    	     $("#auth"+i).css("display","block");						
						}      
	               }else{
	            	       var auth1 ='${srs.actionid}';  
	            	       var auth=auth1.split(',');
	            	    for (var i = 0; i <auth.length ; i++) {	
	            	    	   $("#auth"+bett(auth[i])).css("display","block");  
	            	    	   $("#auth"+auth[i]).css("display","block");  
						}            	   
	               }   
		             })   
           
           
           function bett(num){
				var n=parseInt(num);
				var nn=1;
				if(n<=20&&n>10){
					nn=2;
				}else if(n<=30&&n>20){
					nn=3;
				}else if(n<=40&&n>30){
					nn=4;
				}else if(n<=50&&n>40){
					nn=5;
				}else if(n<=60&&n>50){
					nn=6;
				}else if(n<=70&&n>60){
					nn=7;
				}
				return nn;
			}
    
    
</script>
</html>